package com
{
	import com.mediators.UIBaseMediator;
	import com.mediators.UITopMediator;
	import com.views.UIBase;
	import com.views.UITop;
	
	import org.puremvc.as3.patterns.facade.Facade;
	/**
	 * 注册编辑器模块mediator 
	 * @author shishujun
	 * 
	 */
	public class AppRegisterMediator
	{
		private static var instance : AppRegisterMediator;
		public function AppRegisterMediator()
		{
			
		}
		
		public static function Instance() : AppRegisterMediator
		{
			if(instance == null)instance = new AppRegisterMediator;
			return instance as AppRegisterMediator;
		}
		
		/**
		 * 注册mediator 
		 * @param app
		 * 
		 */		
		public function RegisterMediator(app : UIExportMain) : void
		{
			Facade.getInstance().registerMediator(new UITopMediator(app.uitop));
			Facade.getInstance().registerMediator(new UIBaseMediator(app.uibase));
		}
	}
}